package com.sunwayworld.basemodule.common.eptstorage.acqconfig.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import com.sunwayworld.framework.support.domain.Insertable;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 设备串网口采集记录
 */
@Table("T_LIMS_EQUIPT_SERIAL_NET_REC")
public class LimsEquiptSerialNetRecBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -6303533338943323698L;

    @Id
    private Long id;// 主键
    private Long equiptId;// 设备ID
    private String acqCategory;// 采集类型 ,tcp,udp,file,serial
    private String acqData;// 采集数据
    private String analyseData;// 解析数据
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称
    private String dataUseType; //采集的数据用途 enum DataUseType
    private String labArea; //实验室区域
    private String eptLabType; //实验室类别

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEquiptId() {
        return equiptId;
    }

    public void setEquiptId(Long equiptId) {
        this.equiptId = equiptId;
    }

    public String getAcqCategory() {
        return acqCategory;
    }

    public void setAcqCategory(String acqCategory) {
        this.acqCategory = acqCategory;
    }

    public String getAcqData() {
        return acqData;
    }

    public void setAcqData(String acqData) {
        this.acqData = acqData;
    }

    public String getAnalyseData() {
        return analyseData;
    }

    public void setAnalyseData(String analyseData) {
        this.analyseData = analyseData;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

    public String getDataUseType() {
        return dataUseType;
    }

    public void setDataUseType(String dataUseType) {
        this.dataUseType = dataUseType;
    }

    public String getLabArea() {
        return labArea;
    }

    public void setLabArea(String labArea) {
        this.labArea = labArea;
    }

    public String getEptLabType() {
        return eptLabType;
    }

    public void setEptLabType(String eptLabType) {
        this.eptLabType = eptLabType;
    }
}
